package com.atguigu.spzx.order.service;

import com.atguigu.spzx.model.dto.order.OrderDto;
import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.vo.order.OrderTradeVo;
import com.github.pagehelper.PageInfo;

public interface OrderService {
    OrderTradeVo trade();

    Long submitOrder(OrderDto orderDto);

    OrderInfo findOrderById(Long id);

    OrderTradeVo buy(Long skuId);

    PageInfo<OrderInfo> page(Integer page, Integer limit, Integer orderStatus);

    OrderInfo findOrderByOrderNo(Long orderNo);

    void updateOrderByOrderNo(Long orderNo);
}
